package com.mars.component.mail;

import java.io.File;
import java.io.Serializable;
import java.util.Map;

/**
 * 邮件载体
 * @描述 TODO
 * @类名 MailVo
 * @日期 2016年12月4日 下午1:09:22
 * @作者 yhaoquan
 * @版权 (c) All Rights Reserved, 2016.
 */
public class MailVo implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 发件人名称
	 */
	private String personal;

	/**
	 * 发件人地址
	 */
	private String from;

	/**
	 * 收件人地址
	 */
	private String to;

	/**
	 * 抄送人地址
	 */
	private String cc;

	/**
	 * 暗送人地址
	 */
	private String bcc;

	/**
	 * 邮件主题
	 */
	private String subject;

	/**
	 * 邮件内容
	 */
	private String content;

	/**
	 * 模板名称（xxx.ftl ， 模板地址：/WEB-INF/views/mail/../mail.ftl）
	 */
	private String tplName;

	/**
	 * 模板数据
	 */
	private Map<String, Object> data;

	/**
	 * 附件，文件数组对象
	 */
	private File[] attachments;

	/**
	 * 附件，路径数组
	 */
	private String[] attachmentsArray ;

	/**
	 * 附件，多个附件用;号分割路径
	 */
	private String attachmentsString ;

	public String getPersonal() {
		return personal;
	}

	public void setPersonal(String personal) {
		this.personal = personal;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public String getCc() {
		return cc;
	}

	public void setCc(String cc) {
		this.cc = cc;
	}

	public String getBcc() {
		return bcc;
	}

	public void setBcc(String bcc) {
		this.bcc = bcc;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTplName() {
		return tplName;
	}

	public void setTplName(String tplName) {
		this.tplName = tplName;
	}

	public Map<String, Object> getData() {
		return data;
	}

	public void setData(Map<String, Object> data) {
		this.data = data;
	}

	public File[] getAttachments() {
		return attachments;
	}

	public void setAttachments(File[] attachments) {
		this.attachments = attachments;
	}

	public String[] getAttachmentsArray() {
		return attachmentsArray;
	}

	public void setAttachmentsArray(String[] attachmentsArray) {
		this.attachmentsArray = attachmentsArray;
	}

	public String getAttachmentsString() {
		return attachmentsString;
	}

	public void setAttachmentsString(String attachmentsString) {
		this.attachmentsString = attachmentsString;
	}

}
